<?php

include 'database.php';

class Exam {
	protected $exam_code;
	protected $start_date;
	protected $start_time;
	protected $end_time;
	protected $sub_name;
	protected $no_students;
	
	protected $exam_assoc;
	
	protected $dbo;
	
	function __construct(){
		$this->exam_assoc = array (
			"code" => "",  "name" => "", "start_date" => "", "start_time" => "", "end_time" => "", "students" => 0	
		);
		$this->dbo = new database();	
	}
	
	function update_exam_details($sub_code){
		$query = "select * from exam where Subject_Code = '".$sub_code."'";
	}
	
	function get_exam_details(){
		return $this->exam_assoc;
	}
}
?>